﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace PaperRenderingInterfaces
{
    /// <summary>
    /// Uniform access to the web - so we can do things like passwords, etc., centrally.
    /// </summary>
    public interface IWebAccess
    {
        /// <summary>
        /// Fetchs the data as a complete string.
        /// </summary>
        /// <param name="whatToLoad"></param>
        /// <returns></returns>
        string GetUriAsString(Uri whatToLoad);

        /// <summary>
        /// Returns the date the item was last modified. Returns null if
        /// there was no modification.
        /// </summary>
        /// <param name="whatToCheck"></param>
        /// <returns></returns>
        DateTime? GetLastModificationTime(Uri whatToCheck);
    }
}
